"""
__author__ = 'heyanmin'
__time__ = '2021/8/8 6:47 下午'
"""
import json

import requests


class BaseApi:
    def request(self,data):
        r = requests.request(**data)
        json.dumps(r.json(),ensure_ascii=False,indent=2)
        return  r

        # class BaseApi:
        #     # 多协议支持，或将来协议变更，将协议封装
        #     def request(self, data: dict):
        #         r = requests.request(**data)
        #         json.dumps(r.json(), ensure_ascii=False, indent=2)
        #         return r